package com.lyx.server.controller;

import com.lyx.common.vo.R;
import com.lyx.server.service.CouponLogService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 优惠券⽇志表(CouponLog)表控制层
 *
 * @author McMeloxD
 * @since 2024-08-14 17:40:44
 */
@RestController
@RequestMapping("server/couponLog")
public class CouponLogController  {
    /**
     * 服务对象
     */
    @Resource
    private CouponLogService service;

    @GetMapping("logs")
    public R logs(Integer uid){
        return service.queryByUid(uid);
    }
}

